<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<jsp:include page="/extInclude.jsp" />

<!--如用到jquery jbox必须引入 -->
<jsp:include page="/jqueryInclude.jsp" />
<style>
.x-tree-node-cb {
	display: none;
}
</style>
<script type="text/javascript">
Ext.onReady(function(){
var helpTree = new Ext.tree.TreePanel({
                    id : 'treePanels',
                    iconCls:'help-module',
                    loader : new Ext.tree.TreeLoader({
                                url : _ctxPath + '/genHelpDocTree.do'
                            }),
                    root : new Ext.tree.AsyncTreeNode({
                                nodeType : 'async',
                                text:'帮助目录',
                                id : -1,
                                expanded : true
                            }),
                    autoScroll:true,
                    rootVisible : true,
                    listeners : {
                        'click' : function(node,e){
                      		e.stopEvent();
                      		if(node.isLeaf()){
                      	    	document.getElementById('ifr').src='helpdocView.do?helpBean.modid='+node.id+'&helpBean.ssurl=/ycjy/'+node.attributes['href'].split("?")[0];
                      		}
                        }
                    }
                });
                
                var contactPanel = new Ext.Panel({
                    id : 'contactPanel',
                    renderTo:'treeDiv',
                    autoWidth : true,
                    height:450,
                    layout : 'border',
                    border : false,
                    items : [{ 
                                region : 'west',
                                split : true,
                                collapsible : true,
                                width : 200,
                                margins : '5 0 5 5',
                                layout : 'accordion',
                                autoScroll:true,
                                items : helpTree
                            }, {
                                 border : false,
                                region : 'center',
                                margins : '5 0 5 5',
                                autoWidth : true,
                                height:450,
                                html:"<iframe id='ifr' src='helpdocView.do?helpBean.ssurl=/ycjy/helpdocAdmin.do' width='100%' height='450' frameborder='0' marginwidth='0' marginheight='0' scrolling='auto'></iframe>"
                            }]
                });
})
</script>
<div class="rightCon" align="center" style="padding-top: 5px;">
	<div class="rightTitle" align="left" style="width: 100%">
		<h3>
			<s:property value="nav" escape="false" />
		</h3>
	</div>
	<table class="listTable" style="width: 100%">
		<tr class="listTitle">
			<td align="left">
				<div id="treeDiv"></div>
			</td>
		</tr>
	</table>
</div>
